<template>
  <div>
    <img style="max-width: 400px" v-if="previewImage" :src="previewImage">
    <span v-if="!previewImage">未找到流程图</span>
  </div>
</template>

<script>
export default {
  name: 'FlowDesignPreviewer',
  props: ['recordId'],
  data () {
    return {
      previewImage: undefined
    }
  },
  methods: {
    refresh () {
      this.$get('/process/design/getImage', {'modelId': this.recordId}).then((res) => {
        this.previewImage = res.data.data
      })
    }
  }
}
</script>

<style scoped>

</style>
